<?php
	function connectDB()
	{
		$db['hostname'] = 'localhost';
		$db['username'] = 'root';
		$db['password'] = 'dungmv';
		$db['database'] = 'upanh';
		$db['dbdriver'] = 'mysql';
		$connect = mysqli_connect($db['hostname'],$db['username'],$db['password'],$db['database']) 
				or die('Could not connect to DB');
		mysql_query('set names "utf8"');
		return $connect;
	}
?>